package com.shop.shoppingmall.entity;

import com.aliyuncs.ecs.model.v20140526.DescribePriceResponse;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * (ShBackUser)实体类
 *
 * @author makejava
 * @since 2020-09-16 16:45:20
 */
@Data
public class ShBackUser implements Serializable {
    private static final long serialVersionUID = 526507953772953344L;
    /**
     * 用户id
     */
    private String userId;
    /**
     * 用户昵称
     */
    private String userName;
    /**
     * 手机号码
     */
    private String phone;
    /**
     * 性别 1 男  2 女
     */
    private String sex;
    /**
     * 头像地址
     */
    private String headPortrait;
    /**
     * 用户账号
     */
    private String loginName;
    /**
     * 用户密码
     */
    private String loginPassword;
    /**
     * 账号状态  0 停用  1启用
     */
    private String status;
    /**
     * 用户角色  0 管理员  1平台用户
     */
    private String userRole;
    /**
     * 密码盐
     */
    private String salt;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    private Date createTime;
    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    private Date updateTime;

    private Integer total;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getHeadPortrait() {
        return headPortrait;
    }

    public void setHeadPortrait(String headPortrait) {
        this.headPortrait = headPortrait;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getLoginPassword() {
        return loginPassword;
    }

    public void setLoginPassword(String loginPassword) {
        this.loginPassword = loginPassword;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getUserRole() {
        return userRole;
    }

    public void setUserRole(String userRole) {
        this.userRole = userRole;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

}
